<template>
  <catch-table :form-create="formCreate" v-bind="table" />
</template>

<script>
  import renderTable from '@/views/render-table-form'

  export default {
    mixins: [renderTable],
    data() {
      return {
        tableFrom: 'table/vr/shidaisqinfo',
      }
    },
    methods: {
      tongguo(e) {
        this.$confirm('确定审核该市级代理生成信息吗?', '提示', {
          confirmButtonText: '确认',
          cancelButtonText: '点错了',
          type: 'warning'
        }).then(() => {

          this.$http.get('shsd?id=' + e.id).then(response => {
            console.log(response)
            if (response.code == 10000) {
              this.$message.success('审核完成！')
               this.getTableFrom()
            }

          })


        }).catch(() => {
        		this.$message({
            type: 'info',
            message: '已取消操作'
          });
        });


      }
    }
  }

  // beforeSubmit(row) {
  //   if (row.form.parent_id instanceof Array) {
  //     row.form.parent_id = row.form.parent_id.length > 0 ? row.form.parent_id.pop() : 0
  //   }
  //   return row
  // },
  // zidingyi(e) {
  //   console.log(e)
  // }
</script>
